<?xml version="1.0"?>
<SyntaxDefinition name="SQL" extensions=".sql">

  <Properties>
    <Property name="LineComment" value="--"/>
  </Properties>

  <Digits name="Digits" bold="false" italic="false" color="DarkBlue"/>

  <RuleSets>
    <RuleSet ignorecase="true">
      <Delimiters>&amp;&lt;&gt;~!%^*()-+=|\#/{}[]:;"' ,	.?</Delimiters>

      <Span name = "LineComment" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "true">
        <Begin>--@!/@</Begin>
      </Span>

      <Span name = "BlockComment" rule = "CommentMarkerSet" bold = "false" italic = "false" color = "Green" stopateol = "false">
        <Begin>/*</Begin>
        <End>*/</End>
      </Span>

      <Span name = "String" bold = "false" italic = "false" color = "Red" stopateol = "false">
        <Begin>'</Begin>
        <End>'</End>
      </Span>

      <Span name = "Char" bold = "false" italic = "false" color = "Magenta" stopateol = "false">
        <Begin>&apos;</Begin>
        <End>&apos;</End>
      </Span>

      <Span name = "Identifier" bold = "false" italic = "false" color = "DarkCyan" stopateol = "false">
        <Begin>[</Begin>
        <End>]</End>
      </Span>

      <MarkPrevious bold = "true" italic = "false" color = "MidnightBlue">(</MarkPrevious>

      <KeyWords name = "Punctuation" bold = "false" italic = "false" color = "DarkGreen">
        <Key word = "?" />
        <Key word = "," />
        <Key word = "." />
        <Key word = ";" />
        <Key word = "(" />
        <Key word = ")" />
        <!--Key word = "[" />
        <Key word = "]" /-->
        <Key word = "{" />
        <Key word = "}" />
        <Key word = "+" />
        <Key word = "-" />
        <Key word = "/" />
        <Key word = "%" />
        <Key word = "*" />
        <Key word = "&lt;" />
        <Key word = "&gt;" />
        <Key word = "^" />
        <Key word = "=" />
        <Key word = "~" />
        <Key word = "!" />
        <Key word = "|" />
        <Key word = "&amp;" />
      </KeyWords>

      <KeyWords name = "OperatorKeywords" bold="true" italic="false" color="DarkMagenta">
        <Key word = "ABORT"/>
        <Key word = "AFTER"/>
        <Key word = "ANALYZE"/>
        <Key word = "ASC"/>
        <Key word = "ATTACH"/>
        <Key word = "BEFORE"/>
        <Key word = "BEGIN"/>
        <Key word = "CASCADE"/>
        <Key word = "CAST"/>
        <Key word = "CONFLICT"/>
        <Key word = "CURRENT_DATE"/>
        <Key word = "CURRENT_TIME"/>
        <Key word = "CURRENT_TIMESTAMP"/>
        <Key word = "DATABASE"/>
        <Key word = "DEFERRED"/>
        <Key word = "DESC"/>
        <Key word = "DETACH"/>
        <Key word = "EACH"/>
        <Key word = "END"/>
        <Key word = "EXCLUSIVE"/>
        <Key word = "EXPLAIN"/>
        <Key word = "FAIL"/>
        <Key word = "FOR"/>
        <Key word = "GLOB"/>
        <Key word = "IF"/>
        <Key word = "IGNORE"/>
        <Key word = "IMMEDIATE"/>
        <Key word = "INITIALLY"/>
        <Key word = "INSTEAD"/>
        <Key word = "KEY"/>
        <Key word = "LIKE"/>
        <Key word = "MATCH"/>
        <Key word = "OF"/>
        <Key word = "OFFSET"/>
        <Key word = "PLAN"/>
        <Key word = "PRAGMA"/>
        <Key word = "QUERY"/>
        <Key word = "RAISE"/>
        <Key word = "REINDEX"/>
        <Key word = "RENAME"/>
        <Key word = "REPLACE"/>
        <Key word = "RESTRICT"/>
        <Key word = "ROW"/>
        <Key word = "STATEMENT"/>
        <Key word = "TEMP"/>
        <Key word = "TEMPORARY"/>
        <Key word = "TRIGGER"/>
        <Key word = "VACUUM"/>
        <Key word = "VIEW"/>
        <Key word = "VIRTUAL"/>
      </KeyWords>

      <KeyWords name = "AccessKeywords" bold="false" italic="false" color="Gray">
        <Key word = "OUTER" />
        <Key word = "AND" />
        <Key word = "ANY" />
        <Key word = "BETWEEN" />
        <Key word = "EXISTS" />
        <Key word = "IN" />
        <Key word = "JOIN" />
        <Key word = "LIKE" />
        <Key word = "NOT" />
        <Key word = "NULL" />
        <Key word = "OR" />
      </KeyWords>

      <!--KeyWords name = "SelectionStatements" bold="false" italic="false" color="Blue"-->
      <KeyWords name = "ReservedWords" bold="true" italic="false" color="Blue">
        <Key word = "ADD"/>
        <Key word = "ALL"/>
        <Key word = "ALTER"/>
        <Key word = "AND"/>
        <Key word = "AS"/>
        <Key word = "AUTOINCREMENT"/>
        <Key word = "BETWEEN"/>
        <Key word = "BY"/>
        <Key word = "CASE"/>
        <Key word = "CHECK"/>
        <Key word = "COLLATE"/>
        <Key word = "COMMIT"/>
        <Key word = "CONSTRAINT"/>
        <Key word = "CREATE"/>
        <Key word = "CROSS"/>
        <Key word = "DEFAULT"/>
        <Key word = "DEFERRABLE"/>
        <Key word = "DELETE"/>
        <Key word = "DISTINCT"/>
        <Key word = "DROP"/>
        <Key word = "ELSE"/>
        <Key word = "ESCAPE"/>
        <Key word = "EXCEPT"/>
        <Key word = "FOREIGN"/>
        <Key word = "FROM"/>
        <Key word = "FULL"/>
        <Key word = "GROUP"/>
        <Key word = "HAVING"/>
        <Key word = "IN"/>
        <Key word = "INDEX"/>
        <Key word = "INNER"/>
        <Key word = "INSERT"/>
        <Key word = "INTERSECT"/>
        <Key word = "INTO"/>
        <Key word = "IS"/>
        <Key word = "ISNULL"/>
        <Key word = "JOIN"/>
        <Key word = "LEFT"/>
        <Key word = "LIMIT"/>
        <Key word = "NATURAL"/>
        <Key word = "NOT"/>
        <Key word = "NOTNULL"/>
        <Key word = "NULL"/>
        <Key word = "ON"/>
        <Key word = "OR"/>
        <Key word = "ORDER"/>
        <Key word = "OUTER"/>
        <Key word = "PRIMARY"/>
        <Key word = "REFERENCES"/>
        <Key word = "RIGHT"/>
        <Key word = "ROLLBACK"/>
        <Key word = "SELECT"/>
        <Key word = "SET"/>
        <Key word = "TABLE"/>
        <Key word = "THEN"/>
        <Key word = "TO"/>
        <Key word = "TRANSACTION"/>
        <Key word = "UNION"/>
        <Key word = "UNIQUE"/>
        <Key word = "UPDATE"/>
        <Key word = "USING"/>
        <Key word = "VALUES"/>
        <Key word = "WHEN"/>
        <Key word = "WHERE"/>
      </KeyWords>
    </RuleSet>

    <RuleSet name = "CommentMarkerSet" ignorecase = "true"></RuleSet>
    <RuleSet name = "DocCommentSet" ignorecase = "false"></RuleSet>
    <RuleSet name = "XmlDocSet" ignorecase = "false"></RuleSet>

  </RuleSets>
</SyntaxDefinition>
